// pages/bank-card/bank-card.scss
.bankcard-container {
  min-height: 100vh;
  background: #f5f5f5;
}

/* 自定义导航栏 */
.custom-nav {
  background: white;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  
  .nav-content {
    display: flex;
    align-items: center;
    height: 88rpx;
    padding: 0 20rpx;
  }
  
  .nav-back {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10rpx 20rpx 10rpx 10rpx;
    margin-right: 10rpx;
    
    &:active {
      opacity: 0.5;
    }
    
    .back-icon {
      width: 48rpx;
      height: 48rpx;
    }
  }
  
  .nav-title {
    flex: 1;
    text-align: center;
    font-size: 36rpx;
    font-weight: 600;
    color: #333;
    line-height: 88rpx;
  }
  
  .nav-placeholder {
    width: 68rpx;
  }
}

.main-content {
  padding-top: 200rpx;
}

/* 警告提示 */
.warning-banner {
  display: flex;
  align-items: center;
  gap: 15rpx;
  background: #fff8e1;
  padding: 25rpx 30rpx;
  border-left: 6rpx solid #ffa726;
  margin: 20rpx 30rpx;
  border-radius: 8rpx;
  
  .warning-icon {
    width: 36rpx;
    height: 36rpx;
    flex-shrink: 0;
  }
  
  .warning-text {
    flex: 1;
    font-size: 26rpx;
    color: #e65100;
    line-height: 1.5;
  }
}

/* 标题 */
.section-header {
  font-size: 28rpx;
  font-weight: 600;
  color: #333;
  padding: 30rpx;
}

/* 银行卡列表 */
.card-list {
  padding: 0 30rpx;
}

.bank-card {
  background: linear-gradient(135deg, #ff9800 0%, #ff6f00 100%);
  border-radius: 20rpx;
  padding: 40rpx 30rpx;
  margin-bottom: 30rpx;
  box-shadow: 0 8rpx 24rpx rgba(255, 152, 0, 0.3);
  position: relative;
  
  .card-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }
  
  .card-left {
    display: flex;
    gap: 25rpx;
    flex: 1;
  }
  
  .bank-icon {
    width: 80rpx;
    height: 80rpx;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12rpx;
    padding: 15rpx;
  }
  
  .card-info {
    flex: 1;
    color: white;
    
    .bank-name {
      display: block;
      font-size: 32rpx;
      font-weight: 600;
      margin-bottom: 15rpx;
    }
    
    .card-number {
      display: block;
      font-size: 36rpx;
      font-weight: 500;
      letter-spacing: 2rpx;
      margin-bottom: 20rpx;
    }
    
    .card-meta {
      display: flex;
      align-items: center;
      gap: 10rpx;
      margin-bottom: 10rpx;
      
      .meta-icon {
        width: 28rpx;
        height: 28rpx;
      }
      
      .meta-text {
        font-size: 24rpx;
        opacity: 0.9;
      }
    }
  }
  
  .card-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10rpx;
    
    .action-icon {
      width: 48rpx;
      height: 48rpx;
    }
    
    .action-text {
      font-size: 22rpx;
      color: white;
      opacity: 0.9;
    }
    
    .more-icon {
      width: 32rpx;
      height: 32rpx;
      margin-top: 10rpx;
    }
  }
  
  .default-badge {
    position: absolute;
    top: 20rpx;
    right: 30rpx;
    background: rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 22rpx;
    padding: 6rpx 20rpx;
    border-radius: 20rpx;
    backdrop-filter: blur(10rpx);
  }
}

/* 添加银行卡按钮 */
.add-card-btn {
  margin: 0 30rpx 30rpx;
  padding: 40rpx;
  border: 3rpx dashed #5cb85c;
  border-radius: 20rpx;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: white;
  
  .add-icon {
    width: 60rpx;
    height: 60rpx;
    margin-bottom: 20rpx;
  }
  
  .add-text {
    font-size: 30rpx;
    font-weight: 600;
    color: #5cb85c;
    margin-bottom: 10rpx;
  }
  
  .promotion-text {
    font-size: 24rpx;
    color: #999;
  }
}

/* 安全提示 */
.security-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15rpx;
  padding: 40rpx 30rpx;
  
  .security-icon {
    width: 32rpx;
    height: 32rpx;
  }
  
  .security-text {
    font-size: 24rpx;
    color: #999;
  }
}

/* 详情弹窗 */
.detail-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40rpx;
  
  .modal-content {
    background: white;
    border-radius: 24rpx;
    width: 100%;
    max-width: 600rpx;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  
  .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30rpx;
    border-bottom: 1rpx solid #eee;
    
    .modal-title {
      font-size: 32rpx;
      font-weight: 600;
      color: #333;
    }
    
    .modal-close {
      width: 60rpx;
      height: 60rpx;
      display: flex;
      align-items: center;
      justify-content: center;
      
      .close-icon {
        font-size: 48rpx;
        color: #999;
        line-height: 1;
      }
      
      &:active {
        opacity: 0.5;
      }
    }
  }
  
  .modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 30rpx;
    
    .detail-item {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      padding: 25rpx 0;
      border-bottom: 1rpx solid #f5f5f5;
      
      &:last-child {
        border-bottom: none;
      }
      
      .detail-label {
        font-size: 28rpx;
        color: #666;
        min-width: 160rpx;
        flex-shrink: 0;
      }
      
      .detail-value {
        font-size: 28rpx;
        color: #333;
        font-weight: 500;
        text-align: right;
        flex: 1;
        word-break: break-all;
      }
    }
  }
  
  .modal-loading {
    padding: 80rpx 30rpx;
    text-align: center;
    
    .loading-text {
      font-size: 28rpx;
      color: #999;
    }
  }
}

/* 空状态和加载状态 */
.empty-state,
.loading-state {
  padding: 80rpx 30rpx;
  text-align: center;
  
  .empty-text,
  .loading-text {
    font-size: 28rpx;
    color: #999;
  }
}
